


#include <stdio.h>
#include <stdlib.h>
#include <windows.h>



#include "sdk\lua_api.h"



#define DLLEXPORT __declspec(dllexport)



extern struct luaL_Reg module_name[];



#include "src\luaclib.h"



DLLEXPORT int ExportName(lua_State *L)
{
	InitLuaApi();
	luaL_newlib(L, (const luaL_Reg *)module_name);
	return 1;
}



BOOL APIENTRY DllMain( HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}


